package com.clkj.goldpartner.service;

import com.clkj.goldpartner.pojo.Goods;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public interface GoodsService {
    /**
     * 获取最后一位编号
     *
     * @return String
     */
    String getGoods_num();

    /**
     * 新增商品
     *
     * @param Goods
     */
    Integer addGoods(Goods Goods);

    /**
     * 模糊查询商品
     *
     * @param names
     * @return
     */
    List<Map> listGoods(String names, Integer shop_id,String UDI);

    /**
     * 删除商品
     *
     * @param ids
     */
    void updateStatus(String ids);

    /**
     * 货品进货明细
     *
     * @param goods_num
     * @param shop_id
     * @return
     */
    List<Map<String, Object>> goodsListTotal(String goods_num, Integer shop_id);

    /**
     * 供货商供货汇总
     *
     * @param shop_id
     * @param supplier_id
     * @param start_time
     * @param end_time
     * @return
     */
    List<Map<String, Object>> goodsListGyTotal(Integer shop_id, Integer supplier_id, String start_time, String end_time);

    /**
     * 货品销售汇总
     *
     * @param shop_id
     * @param customer_name
     * @param start_time
     * @param end_time
     * @return
     */
    List<Map<String, Object>> listGoodsSaleTotal(Integer shop_id, String customer_name, String start_time, String end_time);

    /**
     * 商品列表
     *
     * @param goods_num
     * @param goods_name
     * @param goods_format
     * @param category_id
     * @return
     */
    List<Map> listGoodsSearch(Integer shop_id, String goods_num, String goods_name, String goods_format, Integer category_id,String UDI);

}
